import { request } from '@/utils/request'

// 微信支付
export function recharge(data: any) {
	return request({
		url: '/v1/order/recharge',
		method: 'POST',
		data: data
	})
}

// 购买前检查余额
export function checkWallet(data: any) {
	return request({
		url: '/v1/garage-kit/game/buy/check',
		method: 'POST',
		data: data
	})
}
export function orderstate(data: any) {
	return request({
		url: '/v1/order/state',
		method: 'GET',
		data: data
	})
}
// 微信支付
export function postagepay(data: any) {
	return request({
		url: '/v1/order/postage/pay',
		method: 'POST',
		data: data
	})
}
export function buyYiFanShang(data) {
	return request({
		url: '/v1/garage-kit/yifanshang/buy',
		method: 'post',
		data
	})
}

export function buyPk(data) {
	return request({
		url: '/v1/garage-kit/pk/buy',
		method: 'post',
		data
	})
}

export function buyInfinite(data) {
	return request({
		url: '/v1/garage-kit/infinite/buy',
		method: 'post',
		data
	})
}

export function buyZWeal(data) {
	return request({
		url: '/v1/garage-kit/z-weal/buy',
		method: 'post',
		data
	})
}

export function buyCouple(data) {
	return request({
		url: '/v1/garage-kit/couple/buy',
		method: 'post',
		data
	})
}

export function preRechargeconfig() {
	return request({
		url: '/v1/order/pre-recharge/config',
		method: 'get'
	})
}

export function preRecharge(data) {
	return request({
		url: '/v1/order/pre-recharge',
		method: 'post',
		data
	})
}

